package com.example.commonmistak.designpatterns.template.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author xiongwei
 * @date 2022/1/12 22:07
 */
@Data
public class Cart {
    /** 商品清单 */
    private List<Item> items = new ArrayList<>();
    /** 总优惠 */
    private BigDecimal totalDiscount;
    /** 总价 */
    private BigDecimal totalItemPrice;
    /** 总运费 */
    private BigDecimal totalDeliveryPrice;
    /** 应付总价 */
    private BigDecimal payPrice;
}
